﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace Cap_BG
{
    [ServiceContract]
    interface IServCapBG
    {
        [OperationContract]
        [WebGet(BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json, UriTemplate = "/Saludo/{dato}")]
        IList<Persona> Saludo(string dato);

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json, UriTemplate = "/SaludoP")]
        string SaludoP(string dato);
    }

    [ServiceContract]
    interface IServCapBGSoap
    {
        [OperationContract]
        string Saludo(string dato);

    }

}
